package com.gentle.service.impl;

import com.gentle.annotation.RedisLockAnnotation;
import com.gentle.service.TestService;
import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.stereotype.Service;

/**
 * @author Gentle
 * @date 2019/05/31 : 23:40
 */
@Service
public class TestServiceImpl implements TestService {
    int a =0;
    @Override
    @RedisLockAnnotation
    public void countNumber() {
        System.out.println(a++);
    }
}
